package com.sharp.core.math.primitives;

import com.sharp.core.math.Matrix;
import com.sharp.core.math.Vec3;

public abstract class Object3D {

	private Vec3 pos;
	
	public abstract void transform(Matrix m);
	
	public Object3D() {
		pos = new Vec3();
	}
	
	public Vec3 getPos() {
		return pos;
	}

	public void setPos(Vec3 pos) {
		this.pos = pos;
	}
	
	public void setPos(float x, float y, float z) {
		this.pos.setTo(x, y, z);
	}

	@Override
	public String toString() {
		return pos.toString();
	}
	
	
}
